package org.eenie.commonlib.ui.flutter


import android.view.View
import com.eenie.common.base.BaseActivity

import org.eenie.commonlib.R
import org.eenie.commonlib.databinding.ActivityFlutterDemoBinding


class FlutterDemoActivity : BaseActivity() {
    private lateinit var mBinding: ActivityFlutterDemoBinding
//    private val mFlutterEngine: FlutterEngine by lazy {
//        FlutterEngine(this)
//    }


    override fun initContentView(): Int {
        return R.layout.activity_flutter_demo
    }

    override fun initInjector() {

    }

    override fun initUiAndListener(view: View) {
        mBinding = ActivityFlutterDemoBinding.bind(view)
//        mFlutterEngine.dartExecutor.executeDartEntrypoint(DartEntrypoint.createDefault())
//        mBinding.viewFlutter.apply {
//            attachToFlutterEngine(mFlutterEngine)
//        }
    }


    override fun onResume() {
        super.onResume()
//        mFlutterEngine.lifecycleChannel.appIsResumed()
    }

    override fun onPause() {
        super.onPause()
//        mFlutterEngine.lifecycleChannel.appIsPaused()
    }


}